package com.by.common.ex;

import java.util.Map;

/*
* 自定义验证异常
* */
public class ValidateException extends RuntimeException{

//    记录错误字段的
    Map<String,String> errors;

    public ValidateException(Map errors){
        super("验证异常!");
        this.errors = errors;
    }


    public Map<String, String> getErrors() {
        return errors;
    }

    public void setErrors(Map<String, String> errors) {
        this.errors = errors;
    }
}
